package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BrandAddNewParam implements Serializable {

    @NotNull(message = "name必须提交")
    @ApiModelProperty(value = "品牌名称",required = true,example = "小天鹅")
    private String name;

    @NotNull(message = "拼音必须提交")
    @ApiModelProperty(value = "品牌拼音",required = true,example = "xiaotiane")
    private String pinyin;

    @ApiModelProperty(value = "品牌logo",required = true,example = "http://www.baidu.com")
    private String logo;

    @ApiModelProperty(value = "品牌描述",required = true,example = "这是小天鹅品牌")
    private String description;

    @ApiModelProperty(value = "品牌关键词",required = true,example = "k1,k2")
    private String keywords;

    @NotNull(message = "排序必须提交")
    @Range(max = 99,message = "排序必须在0~99之间")
    @ApiModelProperty(value = "品牌排序(1~99之间)",required = true,example = "99")
    private Integer sort;

    @NotNull(message = "enable必须提交")
    @Range(max = 1,message = "enable必须在0~1之间")
    @ApiModelProperty(value = "品牌是否启用(0~1之间)",required = true,example = "1")
    private Integer enable;
}
